//
//  BlockViewController.h
//  协议传值<带返回值.
//
//  Created by dllo on 16/8/4.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import <UIKit/UIKit.h>
// 回调字符串和颜色的block
typedef void(^myBlock)(NSString *textFieldString,UIColor *textFieldColor);
// 有返回值,不携带任何参数的block
typedef NSString *(^youBlock)();
@interface BlockViewController : UIViewController
@property (nonatomic, copy)myBlock goodBlock;
- (void)returnTxt:(myBlock)block;
@property (nonatomic, copy)youBlock badBlock;
- (void)sendValue:(youBlock)block;
@end
